using SqlSugar;

namespace LowCoding.Domain.Entity
{
    /// <summary>
    /// 部门表
    /// </summary>
    [SugarTable("SYSDEPARTMENT")]
    public class SysDepartment
    {
        /// <summary>
        /// 部门ID
        /// </summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 企业ID
        /// </summary>
        [SugarColumn(ColumnName = "DPTFLTID")]
        public string DptFltId { get; set; }

        /// <summary>
        /// 部门代码
        /// </summary>
        [SugarColumn(ColumnName = "DPTCODE")]
        public string DptCode { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [SugarColumn(ColumnName = "DPTNAME")]
        public string DptName { get; set; }

        /// <summary>
        /// 上级部门ID
        /// </summary>
        [SugarColumn(ColumnName = "DPTPREDPTID")]
        public string DptPredptId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "REMARK")]
        public string Remark { get; set; }

        /// <summary>
        /// 新增时间
        /// </summary>
        [SugarColumn(ColumnName = "CREATED", IsOnlyIgnoreUpdate = true)]
        public DateTime? Created { get; set; }

        /// <summary>
        /// 新增人员
        /// </summary>
        [SugarColumn(ColumnName = "CREATOR", IsOnlyIgnoreUpdate = true)]
        public string Creator { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIED")]
        public DateTime? Lastmodified { get; set; }

        /// <summary>
        /// 修改人员
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIER")]
        public string Lastmodifier { get; set; }

        /// <summary>
        /// 是否删除(1 为删除  0和空 为 未删除)
        /// </summary>
        [SugarColumn(ColumnName = "ISDEL", IsOnlyIgnoreUpdate = true)]
        public string Isdel { get; set; }

        /// <summary>
        /// 修改次数
        /// </summary>
        [SugarColumn(ColumnName = "VERSION")]
        public int Version { get; set; }
    }
}